﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class FormGoods : Form
    {
        public int goodsNum;
        public string goodsName;
        public int goodsPrice;
        public bool isChanged = false;

        public FormGoods(int i)
        {
            InitializeComponent();
            this.Text = "请设置第" + (i + 1) + "种商品";
        }

        private void button3_Click(object sender, EventArgs e)
        {
            goodsName = this.textBox1.Text;
            goodsNum = Convert.ToInt32(this.textBox2.Text);
            goodsPrice = Convert.ToInt32(this.textBox3.Text);
            isChanged = true;

            Close();
        }

    }
}